home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / GOD14-(412)695-3647.adf / autocli.doc.pp / autocli.doc
Text File  |  1992-08-04  |  39KB  |  841 lines

  1.                 AutoCLI by Nic Wilson
  2.                 ---------------------
  3.         
  4.                 Nic Wilson Software
  5.                 138d South Street
  6.                 TOOWOOMBA Queensland 4350
  7.                 Australia 
  8.                 
  9.         Phone   (076) 358539  Home Voice only
  10.                 (076) 358384  Work or Fax
  11.                 (076) 358522  Work Voice only
  12.                 
  13.         EMAIL   {cbmvax|cbmehq}!cbmaus!wilson!nic@uunet.uu.net
  14.             
  15.  
  16.         Written in 100% Assembler using Macro68 on an Amiga 3000/PP&S 68040.
  17.  
  18.         AutoCLI is ShareWare.  I have not disabled it in any way.
  19.         This is so you can get full benefit immediately.  If you use 
  20.         it then please send a small donation and help me to bring more
  21.         programs to the Amiga.  Suggested donation is $20.00. Donations 
  22.         will be accepted in any currency.  Mastercard, Visa or Bankcard can 
  23.         also be accepted by mail or by telephone.  Overseas users, please 
  24.         do not send personal or Bank cheques.  Easiest form of payment from
  25.         overseas is cash funds, American Express Travellers Cheques or 
  26.         alternately, disks are an acceptable form of payment.   
  27.         
  28.         Permission is hereby granted to distribute this program on the
  29.         condition that no profit is gained gained from its distribution.
  30.         All document files must accompany it and remain unchanged.  If the
  31.         document files are crunched, then a suitable de-cruncher must also
  32.         be supplied with them that works on ALL model Amigas.  
  33.         It MAY NOT be distributed on those so called 'copyright' non 
  34.         distributable PD disks.  It MAY be distributed on a BBS as long as 
  35.         that BBS does NOT have individual charges for downloading of files.  
  36.         
  37.         Please send any bug reports or ideas to the address at the top of 
  38.         this file. 
  39.  
  40.         Commercial companies wishing to distribute, may contact me at the
  41.         address at the top of this file.
  42.  
  43.         This program is now fully tested an all Amiga models including
  44.         the A3000 and 68040 processor.  Full testing is also done with 
  45.         'enforcer' a debugging program that uses the MMU to look for and 
  46.         display invisible bugs.  I have found 'enforcer' to be a worth-
  47.         while tool for programming.  
  48.  
  49. NEW DOC FILE FROM V2.00
  50. -----------------------
  51.         Bugs and history has now been moved to a seperate file called
  52.         'autocli.history.doc'.  This allows for less cluttered docs.
  53.         Check this file for the latest version number.
  54.  
  55. ************************************************************************
  56. ABSOLUTELY IMPORTANT WHEN UPDATING TO A NEWER VERSION OF AutoCLI
  57. ----------------------------------------------------------------
  58.         There MUST only be one copy of AutoCLI in the current path.
  59.         Otherwise the special re-launcher code may find an older version
  60.         first and install it instead of the one you just loaded.  
  61.         Because newer version have new switches, and you may be using 
  62.         these, it could cause erratic results if these were used on an 
  63.         older version.  After installation you can check the installed
  64.         version by looking in the option window.
  65. ************************************************************************
  66.  
  67. KNOWN BUGS OR CONFLICTS
  68. -----------------------   
  69.         Problems have been encountered with non standard versions of
  70.         the 'RUN' command.  This command is called by 1.3 dos.library's 
  71.         'execute' function.  If you have problems with the Amiga crashing
  72.         when a CLI is popped up then make sure the 'run' command is
  73.         standard.  The one to use is the one you can find on a standard
  74.         Workbench disk.  It is not recommended that ARP Library commands
  75.         be used. I have found them to be the source of many problems. 
  76.         
  77.         Some users have had problem popping up the first window.  This
  78.         has been tracked down to a fault in your 'MOUNTLIST' file in 
  79.         devs.  Ensure that the NEWCON: handler entry is 'L:shell-seg' and
  80.         not 'L/shell-seg'. 
  81.  
  82. SUGGESTIONS
  83. -----------
  84.         If AutoCLI does not have your favourite function, or you can think
  85.         of any improvements, then write and tell me.  The very best
  86.         suggestions receive a FREE copy of my commercial NoVirus program
  87.         or AddMenu Plus Icons.  Include your telephone or fax number so
  88.         I can contact you if you are a winner.  Only registered users that
  89.         have dontated are eligible to enter.
  90.  
  91. NIC'S PROGRAM SUMMARY
  92. ---------------------
  93.         This program was written because of problems with the similar
  94.         program I had been using called 'popcli'.  Popcli crashed if used
  95.         under WorkBench/KickStart 2.0, and if used on a PAL Amiga to open
  96.         a CLI window with a vertical size greater than 200 lines, it did
  97.         not open if your Amiga decides to start in NTSC mode.  Popcli also
  98.         seems to waste CPU time when waiting and doesn't allow you to 
  99.         remove it from memory without crashing or a reboot.  AutoCLI 
  100.         will overcome all of the above problems and has many added features
  101.         equivalent to other programs around, but uses much less CPU time.
  102.         The biggest problem with all the others, is that they lose the 
  103.         Current directory, stack and path.  AutoCLI retains all this 
  104.         including the current directory when the program was launched, 
  105.         it will place you in this directory every time you open a CLI or
  106.         Shell.  Other programs such as DMouse or Mackie had their own 
  107.         individual problems and some have erratic results on a 68040.
  108.         I could not find any written in 100% assembler.  So I decided to 
  109.         write AutoCLI, and with lots of response from the Amiga Community 
  110.         has grown into the most powerful and fastest utility of its type 
  111.         on the Amiga.  I thank all those who have supported AutoCLI by 
  112.         sending their donations, comments and or suggestions.
  113.  
  114.  
  115. FEATURES
  116. --------
  117.         * Kickstart / Workbench 1.2, 1.3, 2.0x compatible
  118.  
  119.         * Compatible with A500, A1000, A2000, A2500, A3000, inc. 68040
  120.  
  121.         * New Anti-Virus Event handler monitors your memory
  122.  
  123.         * Automatically checks and warns of restart vector changes
  124.  
  125.         * Default or custom CLI / Shell windows
  126.  
  127.         * Default windows open to 1 pixel less than current screen
  128.         
  129.         * 20 Function key scripts 
  130.  
  131.         * Update completely after launch
  132.  
  133.         * Asynchronous 'options window' allows modification while running
  134.         
  135.         * Option window can be opened in your specified location
  136.  
  137.         * Active window to front, double click or point to front options
  138.  
  139.         * Screen shuffle option with keyboard or mouse control
  140.         
  141.         * Window shuffle option
  142.  
  143.         * Screen blanking after time period, and optional spline patterns
  144.  
  145.         * Mouse blanking on key press or time option
  146.  
  147.         * Mouse acceleration with optional speeds
  148.         
  149.         * Slow down hot key for mouse accelleration function
  150.  
  151.         * Auto Window activation on a key press/mouse position option.
  152.  
  153.         * Option to swap mouse buttons for left handed users
  154.  
  155.         * Auto formatting of disks via 'Arq & Upd' compatible requesters
  156.  
  157.         * Selectable task priority and screen blanked priority
  158.  
  159.         * No CPU time wastage
  160.  
  161.         * 100% assembly language, written in Devpac and Macro68
  162.  
  163.         * Freely distributable Shareware program
  164.         
  165.         * Plus much much more...
  166.        
  167.  
  168. PROGRAM USAGE FOR INSTALLING AutoCLI
  169. ------------------------------------
  170.  
  171. AutoCLI [<optional switches>] [<optional seconds>] [<optional command>]
  172.  
  173.         YOU MUST NOT USE RUN or RUNBACK when launching AutoCLI.  It will 
  174.         return the command line prompt and allow the window it was launched
  175.         from to close, when an 'ENDCLI' command is given.  It still retains
  176.         the directory it was launched from and does not lose the current
  177.         path or stack.  This means when a CLI is popped up, it will 
  178.         default to the directory that was current, when AutoCLI was
  179.         launched.  The path and stack that was set, will still be valid. 
  180.  
  181.         The program is mainly designed to be used in your startup-sequence
  182.         (or user-startup in V2.0x), so you will always have a CLI or Shell
  183.         window available very conveniently.  AutoCLI MUST reside in your
  184.         C: directory or be in a directory in the path.
  185.  
  186.  
  187. OPTIONAL SWITCHES
  188. -----------------
  189.         The following switches do not have to be given in any particular
  190.         order, but must all be before the optional seconds and command
  191.         parameters, and at least one space between each one.  All options 
  192.         default to OFF and must be enabled with a switch.
  193.  
  194.         Any of these options can be modified after launch, by using the 
  195.         Option Window provided. (see OPTIONS WINDOW below)
  196.  
  197. -c<filename>
  198.  
  199.         This switch allows you to give your option switches in a file
  200.         rather than on the command line at launch.  This allows different
  201.         configurations to be easily loaded.  If this switch is used, any
  202.         other options on the command line will be ignored, in preference
  203.         of the new options in the file.  The filename can be any name you 
  204.         desire, and must be of the same format as if the options were typed 
  205.         at the command line (excluding the word 'AutoCLI' at the beginning).
  206.         If you experience problems with this file, ensure that the file
  207.         does not have an extraneous characters in the file, the file consists
  208.         of a single line terminated with a carriage return (preferably).
  209.         A default filename of 'S:autocli.cmd' can also be used by omitting 
  210.         this switch entirely.  
  211.         
  212.         If this switch is given when AutoCLI is already running, the current
  213.         running copy of AutoCLI will be updated to reflect the options in 
  214.         the suppled file.  This is also true if it is launched again with no 
  215.         parameters at all (default filename), the current running version 
  216.         will attempt to read the default file 'autocli.cmd' and update all 
  217.         options. 
  218.                 
  219.         EXAMPLES
  220.         --------
  221.         AutoCLI -cs:myfile - Loads the file 'myfile' from the S: directory.
  222.         AutoCLI            - Loads the file 'autocli.cmd' from S:directory.
  223.         
  224.  
  225. FUNCTION KEY SCRIPTS
  226. --------------------
  227.  
  228. -f<r>[n]    
  229.  
  230.         This switch enables function key trapping.  When your qualifier
  231.         (see below) is held down and a function key pressed, the       
  232.         program will execute a script file in the assigned S:          
  233.         directory with a filename of autocli.f1 to autocli.f10.      
  234.         This file must be a normal script (eg. startup-sequence).
  235.             
  236.         The extra two switches <r> and [n] are for changing the qualifier
  237.         for the extra 10 keys giving a total of 20 function key scripts.
  238.         The optional 'r' parameter forces the qualifier for these 10 to 
  239.         be the right hand key of 'n'. The 'n' parameter tells AutoCLI 
  240.         which key you want as the qualifier for these extra 10 function
  241.         key scripts.  If none of these are given the it will default to
  242.         the Right Amiga key.  The other choices are as shown below in the
  243.         example.  Filenames for these extra 10 must be:- autocli.e1 to 
  244.         autocli.e10.  These files as above must be in the assigned S:
  245.         directory and be a normal script files.
  246.             
  247.     EXAMPLES
  248.                     
  249.     -f    Gives extra 10 and the second qualifier is Right Amiga 
  250.     -frd  Gives extra 10 and the second qualifier is Right Amiga (AS FOR DEFAULT)
  251.     -fra  Gives extra 10 and the second qualifier is Right Alt
  252.     -frs  Gives extra 10 and the second qualifier is Right Shift
  253.     -fc   Gives extra 10 and the second qualifier is Control          
  254.     -fd   Gives extra 10 and the second qualifier is Left  Amiga
  255.     -fa   Gives extra 10 and the second qualifier is Left  Alt
  256.     -fs   Gives extra 10 and the second qualifier is Left  Shift
  257.     
  258.         Please note that the second qualifier MUST be different to the
  259.         normal qualifier key that you have chosen.  If you select the
  260.         same then the AutoCLI will display an error window.
  261.             
  262.     *************************************************************
  263.             
  264.     FILENAMES FOR FIRST 10 SCRIPTS:-  S:autocli.f1  to  S:autocli.f10
  265.     FILENAMES FOR EXTRA 10 SCRIPTS:-  S:autocli.e1  to  S:autocli.e10
  266.            
  267.     *************************************************************
  268.             
  269.     
  270. WINDOW TO FRONT
  271. ---------------
  272.  
  273. -w[n]       
  274.  
  275.         This switch enables the window to front option.  The optional
  276.         parameter [n] selects the action required to bring it to the
  277.         front.  0 = use keyboard, 1 = use mouse.  To use keyboard 
  278.         activate the window you want at the front by clicking the left 
  279.         mouse inside the window and then hold your qualifier key 
  280.         (see below) and pressing the Left ALT key. 
  281.         To use the mouse simply place the mouse in the window you
  282.         want at the front and the window will immediately appear at
  283.         the front.  Both can be temporarily disabled via the option
  284.         window.
  285.         
  286.         EXAMPLES
  287.          
  288.         for keyboard   -w0   or  -w
  289.         for mouse      -w1
  290.  
  291.         
  292.         DOUBLE CLICK TO FRONT
  293.         ---------------------
  294. -d      This switch if given, enables double click to front windows.
  295.         The time period for double click is taken from your workbench 
  296.         preferences settings.        
  297.         
  298. SCREEN SHUFFLE
  299. --------------          
  300.  
  301. -n[n]       
  302.  
  303.         This switch enables the screen shuffle option.  Two optional
  304.         parameters for [n] are 1 or 2.  1 enables or disables the mouse 
  305.         activated part of the screen shuffling.  If you want the mouse 
  306.         activation then you can leave this parameter off (eg. -n) 
  307.         If you want to disable this feature in case of conflictions with
  308.         other programs such as DirectoryOpus then use -n1.  The third
  309.         option is 2 which enables the mouse activated part as -n does,
  310.         but stops the screen being activated when brought to the front.
  311.             
  312.         EXAMPLES
  313.         
  314.         for keyboard & mouse activated with screen activation    -n  
  315.         for keyboard only with screen activation     -n1
  316.         for keyboard & mouse with no screen activation -n2
  317.                 
  318.         To use this function, hold down your qualifier key and use the 
  319.         cursor up or down keys to rotate all screens in opposite 
  320.         directions. 
  321.         If you prefer you can hold down the left mouse button and 
  322.         click the right button to shuffle the screens (if enabled).
  323.             
  324.         Screen shuffle is different to the standard LEFT AMIGA N & M,
  325.         on Kickstart 1.3.  These standard keys only swap between the front 
  326.         and rear most screens.
  327.             
  328. WINDOW SHUFFLE
  329. --------------            
  330.  
  331. -m          
  332.         This switch enables the window shuffle option.  To use this
  333.         function, hold down your qualifier key and use the cursor
  334.         left or right keys  This will move the front most window to
  335.         the back or the back most window to the front respectively.
  336.         The window shuffle always occurs on the screen that is at
  337.         the front.  This allows you to easily move between windows
  338.         and screens (-n) by using the qualifier and all the cursor keys
  339.         
  340.         Alternatively you can hold down you left qualifier and click
  341.         the left mouse button instead of the cursor keys.  This will move 
  342.         the top most window to the back.
  343.     
  344. MOUSE ACCELERATION
  345. ------------------    
  346. -q[n]        
  347.  
  348.         This switch enables mouse acceleration.  The optional parameter
  349.         [n] is a speed from 1 to 3.  Speed 1 will multiply all mouse 
  350.         movements by a factor of 2.  Speed 2 will multiply by a factor of
  351.         4, and speed 3 is a special case, it will multiply by the amount
  352.         the mouse actually moved, this mode was preferred by a lot of
  353.         users because it will give a small acceleration if the mouse is
  354.         moved a short distance, increasing more and more the further and
  355.         faster you move the mouse.  This function works in conjunction
  356.         with mouse speed under preferences, so this can also be changed to
  357.         find the best possible combination that you like.  If this second
  358.         paramter is not given then it will default to speed 1.  
  359.         
  360.         EXAMPLES
  361.          
  362.         for 4 times speed up the switch should be -q2
  363.         for default speed of 2 times it should be -q
  364.         for automatic linear speed increase       -q3
  365.  
  366.         
  367. MOUSE ACCLERATION SLOW DOWN KEY
  368. -------------------------------
  369.         
  370.         Mouse accelleration can be temporarily slowed down for fine control
  371.         of the mouse by holding down your first qualifier key.
  372.              
  373.         
  374. TASK PRIORITY   (NOT RECOMMENED TO BE CHANGED)
  375. -------------   ------------------------------
  376.  
  377. -p<b>[n]        
  378.  
  379.         This double switch allows you to change the priority of the
  380.         main AutoCLI task running normally and also when the screen is
  381.         blanked.  Without this switch the normal priority will default to 
  382.         21, and the blanked priority will default to -10.  Valid values for 
  383.         [n] are 0 - 21, and -10 - 0 for blanked priority. Bad values will 
  384.         cause erratic operation. ENSURE CORRECT VALUES.  
  385.         Blanked priority is lower, as this stops the blanking code from 
  386.         stealing too much time from other background tasks.
  387.         
  388.         EXAMPLES (MAIN TASK)
  389.          
  390.         for a priority of 0  the switch should be -p0
  391.         for a priority of 20 the switch should be -p20
  392.         
  393.         EXAMPLES (BLANKED TASK) 
  394.          
  395.         for a priority of -5 the switch should be -pb-5
  396.         for a priority of  0 the switch should be -pb0
  397.              
  398.      * * * NOTES * * *
  399.              
  400.         1. If the main priority is changed from 21, some functions may 
  401.            not work correctly. Do not change any of the priority defaults 
  402.            unless you really know what you are doing.  The default 
  403.            priorites have not been plucked from thin air, they are
  404.            the result of years of research in Amiga and AutoCLI 
  405.            programming.  USE WITH CAUTION.
  406.            
  407.         2. If you use a blank screen (no splines) the blanked priority
  408.            is ignored and a priority of zero used.  The AutoCLI task
  409.            is put to sleep in this mode, therefore does not steal any
  410.            time and a lower priority is not required.  The priority you
  411.            set is remembered though, and if you enable splines with the
  412.            option window, your priority will be used.   
  413.              
  414. AUTO WINDOW ACTIVATION
  415. ----------------------             
  416.  
  417. -k      
  418.         This switch enables auto window activation.  If enabled this
  419.         function will activate any window the mouse is currently in 
  420.         when a key is pressed, unless a string gadget is currently active
  421.         in another window.  It will still work even if another screen is
  422.         at the front, and you have dragged it down and placed the mouse 
  423.         over a window on the screen behind.
  424.         
  425. MOUSE MOVEMENT LOCKING & FREEZING
  426. ---------------------------------
  427.  
  428. -l or -lr   
  429.  
  430.         TO TEMPORARILY LOCK X or Y MOVEMENTS
  431.  
  432.         This switch allows the mouse movements to be frozen in vertical,
  433.         horizontal or both directions, by holding down a key or keys.  A
  434.         freeze mouse toggle is also supported.  If the CONTROL key is 
  435.         held down the horizontal movements are frozen.  If the LEFT ALT 
  436.         key is held down then the vertical movements are frozen.  If both 
  437.         are held down then all movements are frozen.  When either of these
  438.         keys are released then movements continue in that direction.
  439.             
  440.         If the CONTROL and LEFT ALT  keys conflict with your first or
  441.         second qualifier keys (see -s -c -a, -f) then use the -lr switch
  442.         instead. The lock keys will change to RIGHT SHIFT for horizontal
  443.         and RIGHT ALT for vertical.  These two modes can be toggled from
  444.         the option window.
  445.         
  446.         TO FREEZE ALL MOVEMENTS OF MOUSE FOR EXTENDED PERIOD
  447.             
  448.         If you want to freeze the entire mouse movements for an extended
  449.         period (EG. Over the start gadget of a copy program etc.) then
  450.         hold down your first qualifier key and press the right mouse 
  451.         button.  This will freeze the mouse permanently until the same
  452.         combination (first qualifier/right mouse) is received again.
  453.         If mouse blanking is enabled, the mouse will still blank while
  454.         frozen.  Moving the mouse will cause it to be re-displayed yet
  455.         no movement will occur.
  456.             
  457.             
  458. MOUSE BLANKING
  459. --------------            
  460.  
  461. -b          
  462.         This switch enables mouse blanking.  When any key is pressed,
  463.         or if no mouse movement is detected within 30 seconds the mouse
  464.         pointer will be blanked.  As soon as the mouse is moved the 
  465.         pointer will be returned immediately.  This overcomes the annoying
  466.         habit of the pointer always being in the way while typing.
  467.  
  468. LEFTY MOUSE
  469. -----------
  470.  
  471. -e          
  472.  
  473.         This switch electrically exchanges the left and right hand buttons
  474.         on the mouse.  All programs that use the mouse correctly will
  475.         work.  If the mouse is checked by hardware then the swap will
  476.         not occur.  This switch can be toggled from the option window.
  477.         
  478. AUTO FORMATTING
  479. ---------------
  480.         
  481. -i<o,f> This switch enables auto disk formatting.  The 'o' option sets
  482.         OLDFS (standard) file system to be used when formatting or the
  483.         'f' option sets it for FastFileSystem (FFS).  If a blank, or non- 
  484.         DOS disk that has its write protect switch set at writeable, is 
  485.         inserted into any drive, a requester will open and ask you if you
  486.         want to format it or leave it.  This formatting will be done in 
  487.         the background, asynchronously to AutoCLI.
  488.         This function requires the standard 'format' command to be
  489.         present in the path.  It has been designed for the standard
  490.         DOS format command, replacement type programs may not work.
  491.         
  492.         EXAMPLES
  493.         
  494.         For old file system -i or -io
  495.         For FastFileSystem  -if
  496.         
  497. QUALIFIER KEY
  498. -------------            
  499. -s  -c  -a  
  500.  
  501.         The default qualifier key is the LEFT AMIGA but this can be 
  502.         changed with a switch.  The -s switch changes the qualifier 
  503.         key to the SHIFT key.  The -c switch changes it to the CONTROL 
  504.         key, and the -a switch changes it to the ALT key.  To use the 
  505.         default key (LEFT AMIGA) then don't use any of these three 
  506.         switches.  Note that this qualifier key is also the same for 
  507.         the autocli function as well.
  508.             
  509. -r          
  510.  
  511.         The above qualifier is, by default, the key on the LEFT side   
  512.         of the keyboard.  To change this to the RIGHT side, use this    
  513.         switch.                 
  514.              
  515. SCREEN BLANKING SECONDS AND SPLINE PATTERNING OPTIONS
  516. -----------------------------------------------------             
  517.              
  518. OPTIONAL SECONDS
  519. ----------------
  520.         
  521.         This is an optional time (in seconds) to blank the screen 
  522.         when no user input is detected. The default is off, so if 
  523.         blanking is not wanted then do not give a time at all.  When 
  524.         the screen has been blanked, it can be turned on again by 
  525.         touching any key, moving the mouse, a disk insertion or a
  526.         disk ejection. This (time) number must be after ALL of the 
  527.         switches including those below that are used in conjunction with 
  528.         this. In other words it must be the last parameter on the line.
  529.         It has been left this way to remain compatible with older versions.
  530.             
  531.         You can blank the screen immediately as if the time had expired 
  532.         by pressing holding your first qualifier key and pressing your
  533.         second qualifier key.
  534.         
  535.         One point to keep in mind is that, if there is a lot of CPU 
  536.         activity while blanked, AutoCLI may take a little while to 
  537.         respond to an event to un-blank depending on the setting of
  538.         blanked priority.  
  539.         
  540.         
  541. SPLINE PATTERNING OPTIONS
  542. -------------------------
  543.  
  544. -l[<a><t><o><s>]<c[n]>  
  545.     
  546.         This switch has a double function with various options.  It is
  547.         used in conjunction with screen blanking.  See 'OPTIONAL SECONDS'
  548.         and -lfb below.  The 'a' part of the switch forces the program
  549.         to randomly change to all spline patterns.  Each time the routine
  550.         finishes drawing your selected number of lines in a certain 
  551.         pattern, it has one chance in twice your chosen number of lines
  552.         of changing patterns.  Sometimes they may change rapidly or 
  553.         slowly.  If you prefer a set pattern, you may use one of the 
  554.         following switch parts instead.  The 't' part of this switch 
  555.         forces the spline pattern to be triangles.  The 'o' part forces 
  556.         open ended triangles and 's' is for single lines.  Try them all 
  557.         and see which your prefer or select random.  Only one of these four
  558.         are allowed, either 'a','t', 'o' or 's' NOT MORE THAN ONE.  If all 
  559.         of these are omitted, a default pattern of boxes will be used.  
  560.         These can also by changed while running in the option window.  At 
  561.         the bottom of the option window is a string gadget containing the 
  562.         number of spline lines to draw.  Your chosen switch part precedes 
  563.         this value within the string gadget and can be modified if you
  564.         wish.  If AutoCLI was launched without one of these switches 
  565.         (default pattern) you may still change patterns by inserting one
  566.         of the switch parts before the value in the string gadget.
  567.         (EG. If gadget had 65, to change to random, gadget would become
  568.         a65 etc.).
  569.           
  570.         The 'c[n]' part of the switch changes the number  of lines the 
  571.         spline patterning routine draws defined by the 'n' portion.  This 
  572.         value can have be between 2 - 100 or 0.  If this switch is not 
  573.         given then a default value of 65 will be used.  If you do not want 
  574.         spline patterning, and prefer a blank black screen when blanked,
  575.         use 0 as the parameter (IE. -lc0 ).  To change the speed of the 
  576.         splines see the -lfb parameter.  If a number too large is given 
  577.         for 'n', it will default to 100, similarly if a number too small
  578.         is given, it will default to 2.
  579.              
  580.         EXAMPLES
  581.         
  582.         -lt    Gives Triangles with default of 65 lines
  583.         -lo    Gives Open sided boxes with default 65 lines
  584.         -ls    Gives Single lines with default of 65 lines
  585.         -la    Gives random changing patterns with default 65 lines
  586.         -lc50  Gives boxes with 50 lines
  587.         -ltc45 Gives triangles with 45 lines
  588.         -loc45 Gives Open sided boxes with 45 lines
  589.         -lsc45 Gives Single lines with 45 lines
  590.         -lac30 Gives random changing patterns with 30 lines
  591.         -lc0   Gives blank black screen
  592.  
  593. -l<f><b>        
  594.  
  595.         This double switch is used in conjunction with screen blanking.
  596.         The switch has two parts the 'f' part and 'b' part.  You may
  597.         use one or both of them. 
  598.         If the 'f' part is given, then the spline patterning will go
  599.         as fast as it will run on your Amiga.  If not given it will be 
  600.         timed to go about the same speed on all Amiga's by using a
  601.         vertical interuppt, and will be slower.
  602.         If the 'b' part is given then the blanking screen will be
  603.         2 bitplanes instead of 1.  2 bitplanes allows more colours
  604.         to be displayed on the spline screen at once.  In 2 bitplane
  605.         mode the routine will use around 120K of chip memory, so 
  606.         only select this mode if you have that amount free.  The memory 
  607.         is only used when the screen is blanked and is given back 
  608.         when un-blanked. 
  609.         1 bitplane mode only allows a single colour to be used at
  610.         one time to draw the splines (although it will cycle to
  611.         different colours).  This requires only half the amount
  612.         of chip memory and should work alright on all Amiga's, unless
  613.         your chip memory usage is very large.
  614.         If you have chosen 2 bitplanes and screen blanking doesn't
  615.         seem to work try removing the 'b', and try again.
  616.             
  617.         EXAMPLE
  618.           
  619.         -lf   speed up splines and use 2 colours        (1 + background)
  620.         -lb   splines timed by VBlank and use 4 colours (3 + background)
  621.         -lfb  speed up splines and use 4 colours        (3 + background)           
  622.                         
  623.  
  624. -x[n]   This switch allows you to specify the initial horizontal 
  625.         co-ordinate of the option window.  The value of [n] must
  626.         be between 0 and (screen width - 536 ).  If an incorrect value
  627.         is given it will be modified to bring the window inside
  628.         the screen area.  If the window is dragged while open, 
  629.         subsequent openings will will be at this new position.
  630.         
  631.         EXAMPLE
  632.         
  633.         -x40  Left edge of the option window is at pixel 40 
  634.         
  635.         For a screen that is 640 pixels wide the maximum number
  636.         would be (screen width - 536) = (640 - 536) = 104
  637.  
  638. -y[n]   This switch allows you to specify the initial vertical 
  639.         co-ordinate of the option window.  The value of [n] must
  640.         be between 0 and (screen height - 133 ).  If an incorrect value
  641.         is given it will be modified to bring the window inside the 
  642.         screen area.  If the window is dragged while open, subsequent 
  643.         openings will will be at this new position.
  644.         
  645.         
  646.         EXAMPLE
  647.         
  648.         -y50  Top edge of the option window is at pixel 50 
  649.         
  650.         For a screen that is 256 pixels high (EG. PAL HighRes) the 
  651.         maximum number would be (screen height - 133) = (256 - 133) = 123
  652.         
  653.         For a screen that is 200 pixels high (EG. NTSC HighRes) the
  654.         maximum number would be (screen height - 133) = (200 - 200) = 67 
  655.         
  656.  
  657. USAGE DISPLAY
  658. -------------
  659.  
  660. ?           
  661.  
  662.         If the only switch is a single question mark, then AutoCLI
  663.         will display a USAGE string on the current CLI window.  
  664.         It will not install or remove itself.
  665.         
  666.         EXAMPLE
  667.         -------
  668.         AutoCLI ?
  669.             
  670.             
  671. REMOVING AutoCLI completely
  672. ---------------------------            
  673. remove      
  674.  
  675.         This switch should be used on its own.  It will signal
  676.         the current version of AutoCLI to shut down and remove 
  677.         itself.  Whenever it attempts this removal, a success
  678.         or failure message will be displayed on the CLI window.
  679.         
  680.         To remove from Workbench, see OPTIONS WINDOW.
  681.  
  682. WARNING WINDOW
  683. --------------
  684.         The event handler constantly checks the restart vectors against
  685.         values that were there when AutoCLI was first launched.  These
  686.         vectors are often modified by viruses in order to survive a
  687.         reboot.  If this happens during normal operation, (IE. file
  688.         virus gets launched) then AutoCLI will open a small warning
  689.         window and ask you if you wish to replace them with their
  690.         original values or leave them.   For example mounting RAD:
  691.         and then accessing it will change these vectors but is of course
  692.         O.K., and not a virus.  You would answer NO to the question, 
  693.         AutoCLI will then accept these changes as OK.
  694.  
  695. OPTIONS WINDOW
  696. --------------
  697.         This function is always available, even if function key scripts
  698.         (-f) is turned off.  It is accessed by holding your first qualifier
  699.         key and pressing HELP.  A window will open on the front most 
  700.         screen with gadgets set with your current options.  This window
  701.         is asynchronous to the main program.  This means that all AutoCLI
  702.         functions will continue to operate if the options window is open.
  703.         Click on the gadgets to turn functions on or off.  Some fuctions
  704.         have more than one setting and each click of its particular 
  705.         gadget will cycle that gadget through all possible modes.  The
  706.         text string beside the gadget will also change to help you 
  707.         remember the function of each particular setting.
  708.         
  709.         The command string that is executed when first qualifier ESC is 
  710.         pressed will be displayed in a string gadget called 'Command 
  711.         String'.  If you are using Auto sizing CLI/Shell windows, this
  712.         string gadget will be ghosted.  To use a modiified string or
  713.         replace it completely, click the 'AUTO' gadget.  The gadget will
  714.         now show 'MANUAL' and the string gadget will be available and be
  715.         selected for your input.  You can always return to Auto sizing by
  716.         re-enabling the 'AUTO' mode.
  717.         
  718.         Screen blanking time can be changed by clicking in the gadget
  719.         and changing it accordingly.  If you turn screen blanking on, but
  720.         give no time, then a default time of 500 seconds will be set.
  721.         
  722.         The number of lines to draw in the spline patterning code can
  723.         be changed by clicking in the gadget and changing it accordingly.
  724.         if an incorrect value is given then the closest correct value will
  725.         immediately appear in the gadget.  A totally incorrect response
  726.         will force a value of 65 to be placed in the gadget.  The type
  727.         of pattern to use (boxes or triangles) is incorporated into this
  728.         gadget.  If you selected triangles or wish to select triangles 
  729.         then a 't' should precede the value. (IE. to show triangles with
  730.         50 lines, this gadget should show t50).
  731.         
  732.         At the bottom of the window are two gadgets, 'OK' and 'REMOVE'.
  733.         The 'OK' gadget closes the options window.  The remove gadget will 
  734.         open a requester and ask you if you are sure you want to remove
  735.         AutoCLI completely.
  736.                 
  737. OPTIONAL COMMAND (command run when 'Qualifer ESC' is pressed)
  738. ----------------
  739.         If no optional command is given then AutoCLI will use a default
  740.         command.  This default command is:-  
  741.         AutoCLI will launch and wait for your qualifier key and ESCAPE to 
  742.         be pressed.  When this event occurs AutoCLI will open a CLI or 
  743.         Shell window 1 pixel less than the size of the WorkBench Screen at
  744.         the time it is opened.  If resolution mode is changed AutoCLI will
  745.         notice the change.  If NEWCON: is available, a Shell window will 
  746.         open instead of a CLI window and if running under V2.0x of 
  747.         Workbench, the window will have a close gadget.    
  748.  
  749.         If an optional command is given, AutoCLI will execute that command
  750.         in preference to the default CLI/SHELL window when your qualifier
  751.         key and ESCAPE is pressed (see EXAMPLES).  This allows custom 
  752.         commands or custom size CLI/Shell windows to be used.  Note that
  753.         if AutoCLI is already in memory it will update itself to to 
  754.         reflect all parmeters given.
  755.         
  756.         The Optional Command can be modified after launch within the option
  757.         window.  Click the gadget beside the 'Command String' string gadget
  758.         until it shows 'MANUAL', the string gadget will be activated for 
  759.         you.  The command can then be modified and the program will use
  760.         this new string.  The default string can always be re-selected by
  761.         clicking the gadget until it shows 'AUTO'. 
  762.  
  763. UPDATING AutoCLI ONCE ALREADY RUNNING
  764. -------------------------------------
  765.         Most changes can be made via the options window, or you can launch
  766.         again from the CLI and supply a whole new set of parameters and it
  767.         will completely update itself.  If launched with a newer version
  768.         this newer version is NOT installed, it will simply supply a new
  769.         set of parameters to the current version.
  770.  
  771.  
  772. COMMAND LINE EXAMPLES  
  773. ---------------------  
  774.  AutoCLI
  775.         
  776.         Attempts to load a file 'S:autocli.cmd' and reads it for the 
  777.         options.
  778.  
  779.  AutoCLI -frd -io -d -w -n -b -q2 -m -k -l -lfb -ltc50 600 
  780.         
  781.         Opens a Shell window with automatic full size minus 1 pixel.
  782.         Enables 20 function keys with RIGHT AMIGA as the qualifier for the
  783.         second 10.  Selects the LEFT AMIGA as your qualifier.  Enables auto
  784.         disk formatting with OLDFS (normal), enables double-click to front
  785.         windows, key-window to front option, screen shuffle option, window 
  786.         shuffle option, pointer lock, auto window activation, mouse blanking,
  787.         mouse acceleration at the second rate, screen blanking after 10 mins
  788.         of non use, and draws triangles with 50 spline patterning lines,
  789.         using 4 colours in fast mode. 
  790.      
  791.  AutoCLI -f -w0 -n -m -k -l -r -s -pb-5 600 newshell newcon:0/10/640/150/MyShell
  792.  
  793.         Opens a Shell window with a title of 'MyShell', enables function 
  794.         keys, selects the RIGHT SHIFT (-r -s) as your qualifier and right 
  795.         Amiga as the second qualifier (-f), enables the window to front 
  796.         option ,enables the screen shuffle option, enables the window shuffle,
  797.         enables pointer lock, enables auto activation, changes the blanked 
  798.         priority to -5, and will blank the screen after 10 mins of non use). 
  799.  
  800.  AutoCLI -f -d -q2 YourProg
  801.         Runs a file called YourProg when LEFT AMIGA/ESCAPE is pressed,
  802.         enables function keys, double-click window to front and will disable 
  803.         the screen blanking (ie. no time given), and will accellerate the 
  804.         mouse by a factor of 4. 
  805.                                
  806.  AutoCLI remove
  807.  
  808.         Attempts to remove the currently running version from memory
  809.         and displays a success or failure message).
  810.  
  811. REQUIREMENTS
  812. ------------
  813. The following commands MUST be available in the current C: directory
  814. for kickstart 1.3.  With V2.04, some may be resident commands.
  815.    
  816. execute         ; c directoey (called by the DOS Execute function)
  817. run             ; c directory (called by the DOS Execute function)
  818. newcli          ; c directory (called by AutoCLI if NEWCON not available)
  819. newshell        ; c directory (called by AutoCLI if NEWCON is available)
  820. shell-seg       ; l directory (needed if NEWCON: is mounted)
  821. AutoCLI         ; c directory or current directory when launched.
  822.  
  823. The following commands, devices, files are optional :-
  824.  
  825. cli-startup     ; s directory (script executed by Newcli)
  826. shell-startup   ; s directory (script executed by NewShell)
  827. NEWCON:         ; (must be mounted to enable Shell instead of CLI)
  828. AutoCLI.f1      ; s directory (script file for qualifier/F1)
  829. AutoCLI.f2      ; s directory (script file for qualifier/F2)
  830. ...etc.
  831. AutoCLI.e1      ; s directory (script file for 2nd qualifier/F1)
  832. AutoCLI.e2      ; s directory (script file for 2nd qualifier/F2)
  833. ...etc.
  834.  
  835. NOTE: 'Amiga','Workbench' & 'Kickstart' are Trademarks of Commodore 
  836. Amiga Inc.
  837.  
  838.       
  839.  
  840.                     
  841.